package com.zxyankh.raft.enums;

/**
 * @author ankh
 * @since 31.10.2017
 */
public enum ServerStatus {
    LEADER(1, "leader"), CANDIDATE(2, "candidate"), FOLLOWER(3, "follower");

    private int id;
    private String name;

    ServerStatus(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
